package com.fortune.dto.in.dUser;

import javax.validation.constraints.Pattern;

import com.fortune.constants.PatternConstants;

import io.swagger.annotations.ApiModelProperty;

public class DLoginDto {
	@Pattern(regexp=PatternConstants.PHONE, message="手机号格式错误")
	@ApiModelProperty(required=true, example="手机号码")
	private String phone;
	@Pattern(regexp=PatternConstants.PASSWORD, message="密码请输入6～20位数字或字母")
	@ApiModelProperty(required=true, example="密码")
	private String password;
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	@Override
	public String toString() {
		return "SalesManLoginDto [phone=" + phone + ", password=" + password + "]";
	}
}
